package com.jtbd.domain;


import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

@Data
public class UserEmployee {
    @TableId(type = IdType.AUTO)
    @Schema(description = "员工id")
    private Long id;
    @Schema(description = "用户id")
    private Long uid;
    @Schema(description = "部门id")
    private Long departmentId;
    @Schema(description = "用户身份:1->部门管理员 2->普通员工")
    private Integer employeeDepartmentIdentity;
    @Schema(description = "校区id")
    private Long campusId;
    @Schema(description = "部门领导id")
    private Long leaderId;
    @Schema(description = "员工在职状态")
    private Integer employeeStatus;
    @Schema(description = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    @Schema(description = "修改时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
    @Schema(description = "组织id")
    private Long orgId;
    @Schema(description = "入职时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date joinTime;
    @Schema(description = "离职时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date quitTime;
}
